package br.com.bringme.views;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JSeparator;
import java.awt.SystemColor;
import javax.swing.SwingConstants;
import javax.swing.JComboBox;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import org.eclipse.wb.swing.FocusTraversalOnArray;
import java.awt.Component;

@SuppressWarnings("serial")
public class AlocarEntregador extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					AlocarEntregador frame = new AlocarEntregador();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	@SuppressWarnings("rawtypes")
	public AlocarEntregador() {
		setResizable(false);
		setTitle("BringMe - Definir Entregador");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 590, 450);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblCInfo = new JLabel("Informa\u00E7\u00F5es do Cliente");
		lblCInfo.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		lblCInfo.setBounds(15, 11, 171, 19);
		contentPane.add(lblCInfo);
		
		JSeparator separator = new JSeparator();
		separator.setOrientation(SwingConstants.VERTICAL);
		separator.setForeground(SystemColor.controlShadow);
		separator.setBounds(572, 20, 2, 90);
		contentPane.add(separator);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setForeground(SystemColor.controlShadow);
		separator_1.setBounds(10, 110, 563, 2);
		contentPane.add(separator_1);
		
		JSeparator separator_2 = new JSeparator();
		separator_2.setOrientation(SwingConstants.VERTICAL);
		separator_2.setForeground(SystemColor.controlShadow);
		separator_2.setBounds(10, 15, 2, 97);
		contentPane.add(separator_2);
		
		JSeparator separator_3 = new JSeparator();
		separator_3.setForeground(SystemColor.controlShadow);
		separator_3.setBounds(180, 20, 394, 2);
		contentPane.add(separator_3);
		
		JLabel lblCNome = new JLabel("Nome:");
		lblCNome.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblCNome.setBounds(25, 36, 61, 14);
		contentPane.add(lblCNome);
		
		JLabel lblCEndereco = new JLabel("Endere\u00E7o:");
		lblCEndereco.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblCEndereco.setBounds(25, 61, 61, 14);
		contentPane.add(lblCEndereco);
		
		JLabel lblCTelefone = new JLabel("Telefone:");
		lblCTelefone.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblCTelefone.setBounds(25, 86, 61, 14);
		contentPane.add(lblCTelefone);
		
		JLabel lblClienteNome = new JLabel("");
		lblClienteNome.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblClienteNome.setBounds(96, 37, 466, 14);
		contentPane.add(lblClienteNome);
		
		JLabel lblClienteEndereco = new JLabel("");
		lblClienteEndereco.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblClienteEndereco.setBounds(96, 62, 466, 14);
		contentPane.add(lblClienteEndereco);
		
		JLabel lblClienteTelefone = new JLabel("");
		lblClienteTelefone.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblClienteTelefone.setBounds(96, 87, 466, 14);
		contentPane.add(lblClienteTelefone);
		
		JLabel lblPInfo = new JLabel("Informa\u00E7\u00F5es do Pedido");
		lblPInfo.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		lblPInfo.setBounds(15, 123, 171, 19);
		contentPane.add(lblPInfo);
		
		JSeparator separator_4 = new JSeparator();
		separator_4.setOrientation(SwingConstants.VERTICAL);
		separator_4.setForeground(SystemColor.controlShadow);
		separator_4.setBounds(572, 132, 2, 139);
		contentPane.add(separator_4);
		
		JSeparator separator_5 = new JSeparator();
		separator_5.setForeground(SystemColor.controlShadow);
		separator_5.setBounds(10, 270, 564, 2);
		contentPane.add(separator_5);
		
		JSeparator separator_6 = new JSeparator();
		separator_6.setOrientation(SwingConstants.VERTICAL);
		separator_6.setForeground(SystemColor.controlShadow);
		separator_6.setBounds(10, 127, 2, 145);
		contentPane.add(separator_6);
		
		JSeparator separator_7 = new JSeparator();
		separator_7.setForeground(SystemColor.controlShadow);
		separator_7.setBounds(180, 132, 394, 2);
		contentPane.add(separator_7);
		
		JLabel lblPEnderecoOrigem = new JLabel("Endere\u00E7o de origem:");
		lblPEnderecoOrigem.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPEnderecoOrigem.setBounds(25, 148, 130, 14);
		contentPane.add(lblPEnderecoOrigem);
		
		JLabel lblPEnderecoDestino = new JLabel("Endere\u00E7o de Destino:");
		lblPEnderecoDestino.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPEnderecoDestino.setBounds(25, 173, 130, 14);
		contentPane.add(lblPEnderecoDestino);
		
		JLabel lblPReferencia = new JLabel("Refer\u00EAncia:");
		lblPReferencia.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPReferencia.setBounds(25, 198, 130, 14);
		contentPane.add(lblPReferencia);
		
		JLabel lblPReceptor = new JLabel("Receptor:");
		lblPReceptor.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPReceptor.setBounds(25, 223, 130, 14);
		contentPane.add(lblPReceptor);
		
		JLabel lblPTipo = new JLabel("Tipo:");
		lblPTipo.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPTipo.setBounds(25, 248, 130, 14);
		contentPane.add(lblPTipo);
		
		JLabel lblPedidoEnderecoOrigem = new JLabel("");
		lblPedidoEnderecoOrigem.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPedidoEnderecoOrigem.setBounds(165, 149, 397, 14);
		contentPane.add(lblPedidoEnderecoOrigem);
		
		JLabel lblPedidoEnderecoDestino = new JLabel("");
		lblPedidoEnderecoDestino.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPedidoEnderecoDestino.setBounds(165, 174, 397, 14);
		contentPane.add(lblPedidoEnderecoDestino);
		
		JLabel lblPedidoReferencia = new JLabel("");
		lblPedidoReferencia.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPedidoReferencia.setBounds(165, 199, 397, 14);
		contentPane.add(lblPedidoReferencia);
		
		JLabel lblPedidoReceptor = new JLabel("");
		lblPedidoReceptor.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPedidoReceptor.setBounds(165, 224, 397, 14);
		contentPane.add(lblPedidoReceptor);
		
		JLabel lblPedidoTipo = new JLabel("");
		lblPedidoTipo.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblPedidoTipo.setBounds(165, 249, 397, 14);
		contentPane.add(lblPedidoTipo);
		
		JLabel lblDefinirEntregador = new JLabel("Definir Entregador:");
		lblDefinirEntregador.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		lblDefinirEntregador.setBounds(10, 283, 130, 19);
		contentPane.add(lblDefinirEntregador);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setFont(new Font("Century Gothic", Font.PLAIN, 11));
		comboBox.setBounds(150, 284, 202, 20);
		contentPane.add(comboBox);
		
		JLabel lblEInfo = new JLabel("Informa\u00E7\u00F5es do Entregador");
		lblEInfo.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		lblEInfo.setBounds(15, 313, 194, 19);
		contentPane.add(lblEInfo);
		
		JSeparator separator_8 = new JSeparator();
		separator_8.setOrientation(SwingConstants.VERTICAL);
		separator_8.setForeground(SystemColor.controlShadow);
		separator_8.setBounds(572, 322, 2, 90);
		contentPane.add(separator_8);
		
		JSeparator separator_9 = new JSeparator();
		separator_9.setForeground(SystemColor.controlShadow);
		separator_9.setBounds(10, 412, 563, 2);
		contentPane.add(separator_9);
		
		JSeparator separator_10 = new JSeparator();
		separator_10.setOrientation(SwingConstants.VERTICAL);
		separator_10.setForeground(SystemColor.controlShadow);
		separator_10.setBounds(10, 317, 2, 97);
		contentPane.add(separator_10);
		
		JSeparator separator_11 = new JSeparator();
		separator_11.setForeground(SystemColor.controlShadow);
		separator_11.setBounds(210, 322, 364, 2);
		contentPane.add(separator_11);
		
		JLabel lblENome = new JLabel("Nome:");
		lblENome.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblENome.setBounds(25, 338, 61, 14);
		contentPane.add(lblENome);
		
		JLabel lblETelefone = new JLabel("Telefone:");
		lblETelefone.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblETelefone.setBounds(25, 363, 61, 14);
		contentPane.add(lblETelefone);
		
		JLabel lblEUltimoEndereco = new JLabel("\u00DAltimo endere\u00E7o:");
		lblEUltimoEndereco.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblEUltimoEndereco.setBounds(25, 388, 103, 14);
		contentPane.add(lblEUltimoEndereco);
		
		JLabel lblEntregadorNome = new JLabel("");
		lblEntregadorNome.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblEntregadorNome.setBounds(96, 339, 466, 14);
		contentPane.add(lblEntregadorNome);
		
		JLabel lblEntregadorTelefone = new JLabel("");
		lblEntregadorTelefone.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblEntregadorTelefone.setBounds(96, 364, 466, 14);
		contentPane.add(lblEntregadorTelefone);
		
		JLabel lblEntregadorUltimoEndereco = new JLabel("");
		lblEntregadorUltimoEndereco.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblEntregadorUltimoEndereco.setBounds(150, 389, 412, 14);
		contentPane.add(lblEntregadorUltimoEndereco);
		
		JButton btnAlocarEntregador = new JButton("Ok");
		btnAlocarEntregador.setFont(new Font("Century Gothic", Font.PLAIN, 11));
		btnAlocarEntregador.setIcon(new ImageIcon(AlocarEntregador.class.getResource("/br/com/bringme/vision/icons/Accept16.png")));
		btnAlocarEntregador.setBounds(484, 283, 89, 23);
		contentPane.add(btnAlocarEntregador);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setIcon(new ImageIcon(AlocarEntregador.class.getResource("/br/com/bringme/vision/icons/Cancel16.png")));
		btnCancelar.setFont(new Font("Century Gothic", Font.PLAIN, 11));
		btnCancelar.setBounds(362, 283, 112, 23);
		contentPane.add(btnCancelar);
		setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{comboBox, btnAlocarEntregador, btnCancelar}));
	}
}
